//
//  LeyunDefines.h
//  yunqiphone
//
//  Created by zt-macbook on 13-4-15.
//  Copyright (c) 2013年 ci123.com. All rights reserved.
//

#ifndef yunqiphone_LeyunDefines_h
#define yunqiphone_LeyunDefines_h

//** SERVER URL *****************************************************************************

//HOST:180.96.7.118  圈圈*********************

#define BaseURLString               @"http://www.qubaobei.com/ios/api/"

//** GET***********************/

//活动列表
#define ActiveListUrlString         [BaseURLString stringByAppendingString:@"city_act_list_v3.php"]

// 知识库分类
#define KnowledgeCateUrlString      [BaseURLString stringByAppendingString:@"knowledge/knowledge_cate_list.php"]

// 知识列表
#define KnowledgeListUrlString      [BaseURLString stringByAppendingString:@"knowledge/knowledge_list.php"]

// 知识搜索
#define KnowledgeSearchUrlString      [BaseURLString stringByAppendingString:@"knowledge/knowledge_search.php"]

//收藏列表
#define CollectURLString            [BaseURLString stringByAppendingString:@"ios_collect_list.php"]

//不能吃获取数据
#define NoEatingListURLString       @"http://www.qubaobei.com/ios/cf/eat_list.php"
#define NoEatingDetailURLString     @"http://www.qubaobei.com/ios/cf/eat_view2.php"

//搜索内容
#define SearchKeywordsURLString     @"http://baby.ci123.com/yunqi/api/ios_search.php"
#define SearchListURLString         [BaseURLString stringByAppendingString:@"ios_search_list.php"]

//获取消息提醒(数量)
#define MessageURLString            [BaseURLString stringByAppendingString:[NSString stringWithFormat:@"adr_msg_get_v2.php?mobile=51&is_new=1&uid=%@",UDQQUID]]

//获取消息列表数据
#define MessageDataListURLString    [BaseURLString stringByAppendingString:[NSString stringWithFormat:@"adr_msg_get_v7.php?mobile=51&mtypes=msg&is_new=1&uid=%@",UDQQUID]]

//点击消息清除提醒
#define SweepSingleMessageURLString [BaseURLString stringByAppendingString: @"adr_msg_up.php?site=2"]

//一键清除消息提醒
#define SweepMessageURLString       [BaseURLString stringByAppendingString:[NSString stringWithFormat:@"adr_msg_clear.php?site=2&type=1&o_user_id=%@",UDYunqiUID]]

//清除站内信
#define SweepLetterURLString       [BaseURLString stringByAppendingString:[NSString stringWithFormat:@"adr_msg_up_more.php?site=2&user_id=%@",UDQQUID]]

//点击消息清除盖楼提醒
#define SweepBuildingMessageURLString @"http://baby.ci123.com/msg/msg_del.php"

//点击消息清除盖楼提醒
#define SweepBuildingMoreMessageURLString [NSString stringWithFormat:@"http://baby.ci123.com/msg/msg_clear.php?user_id=%@",UDQQUID]

//清除管理员删除的盖楼提醒
#define SweepDelMoreMessageURLString [NSString stringWithFormat:@"http://baby.ci123.com/msg/msg_del_more.php?user_id=%@",UDQQUID]

//首页
#define HomeURLString               [BaseURLString stringByAppendingString:[NSString stringWithFormat:@"ios_user_start_v4.php?remind=0&o_user_id=%@&version=%@&crc=%@", UDYunqiUID, Current_Build, UDCrc]]

//首页头部宝宝信息
#define HomeBabyInfoURLString       [BaseURLString stringByAppendingString:[NSString stringWithFormat:@"home_top.php?user_id=%@&version=%@&crc_qq=%@", UDQQUID, Current_Build, UDCrcQQ]]

//用户资料
#define UserURLString               [BaseURLString stringByAppendingString:@"ios_user_start.php?remind=0"]

//个人中心详细信息
#define InfoDetailURLString          [NSString stringWithFormat:@"http://baby.ci123.com/yunqi/android5/getUserInfo_v4.php?uid=%@",UDYunqiUID]

//获取满月等分享的图片
#define InfoGetShareImageURLString   [NSString stringWithFormat:@"http://www.qubaobei.com/event/birth_photo.php?mobile=51&version=%@",Current_Version]

//发现模块获取
#define FindDataURLString          [BaseURLString stringByAppendingString:[NSString stringWithFormat:@"city_fx_view.php?mobile=51&user_id=%@&version=%@",UDQQUID,Current_Version]]

//获取首页广告信息
#define HomeAdsUrlString            [BaseURLString stringByAppendingString:[NSString stringWithFormat:@"adr_ad.php?site=51&is_new=1&version=%@&uid=%@", Current_Version, UDYunqiUID]]

//获取广告圈信息
#define AdsCircleInfoUrlString            [NSString stringWithFormat:@"http://www.qubaobei.com/ios/api/brand_quan_info.php?o_user_id=%@&mobile=51",UDYunqiUID]

//获取广告列表
#define AdsCircleListUrlString            [NSString stringWithFormat:@"http://www.qubaobei.com/ios/api/brand_bbs_list.php?limit=20&uid=%@&site=51",UDYunqiUID]

//获取首页新人信息
#define HomeNewPeopleListUrlString     [BaseURLString stringByAppendingString:[NSString stringWithFormat:@"new_user.php?mobile=51&user_id=%@",UDQQUID]]

//获取首页功能区列表
#define HomeFunctionListUrlString     [BaseURLString stringByAppendingString:[NSString stringWithFormat:@"home_page_v2.php?mobile=51&user_id=%@&version=%@",UDQQUID,Current_Build]]

//*********** 孕期提醒互通 start ****************

//点击上传数据
#define PregnantClickUrlString     [BaseURLString stringByAppendingString:[NSString stringWithFormat:@"click_data.php"]]

//孕期提醒用户是否继续使用
#define PregnantContinueUseUrlString     [BaseURLString stringByAppendingString:[NSString stringWithFormat:@"click_update.php"]]

//妈妈社区用户是否继续使用
#define MamabbsContinueUseUrlString     [BaseURLString stringByAppendingString:[NSString stringWithFormat:@"click_continue.php"]]

//妈妈社区用户是否继续使用
#define PregnantGetInfoUrlString     [BaseURLString stringByAppendingString:[NSString stringWithFormat:@"click_info.php"]]

//*********** 孕期提醒互通 end ****************

//获取推荐帖子列表
#define HomeRecommendPostListUrlString     [BaseURLString stringByAppendingString:[NSString stringWithFormat:@"home_recommend_posts.php?qq_id=%@",UDQQUID]]

//获取首页发现美丽列表
#define HomeRecommendListUrlString     [BaseURLString stringByAppendingString:[NSString stringWithFormat:@"home_post.php?user_id=%@&version=%@",UDQQUID,Current_Build]]

//获取孕期提醒
#define YunQiRemindUrlString     [BaseURLString stringByAppendingString:[NSString stringWithFormat:@"yun_push.php?user_id=%@",UDQQUID]]

//获取孕期提醒
#define HomeNewbornUrlString     [BaseURLString stringByAppendingString:[NSString stringWithFormat:@"baby_push.php?mobile=51&user_id=%@",UDQQUID]]

//获取启动页广告数据
#define LaunchAdDataUrlString     [BaseURLString stringByAppendingString:[NSString stringWithFormat:@"adv_get.php?mobile=51"]]
#define LaunchAdDataListPath       [HomeDirectory stringByAppendingString:@"launchAdDataList.plist"]


//品牌圈是否签到
#define AdsCircleSignedInfoUrl            [NSString stringWithFormat:@"http://www.qubaobei.com/ios/api/brand_sign_log.php?o_user_id=%@&mobile=51",UDYunqiUID]

//品牌圈分享加积分
#define AdsCircleShareAddCoinUrl            [NSString stringWithFormat:@"http://www.qubaobei.com/ios/api/brand_add_coin.php?type=1&mobile=51&o_user_id=%@",UDYunqiUID]

//品牌圈去签到
#define AdsCircleToSignUrl            [NSString stringWithFormat:@"http://www.qubaobei.com/ios/api/brand_sign_act.php?o_user_id=%@&mobile=51",UDYunqiUID]

//更新广告点击率
#define UpdateAdsClickString          [NSString stringWithFormat:@"http://www.qubaobei.com/ios/api/ad_count.php?uid=%@&site=51",UDYunqiUID]

//宝宝衣橱
#define BabySalesUrlString          [NSString stringWithFormat:@"http://baby.ci123.com/yunqi/ios2/bank.php?user_id=%@&mobile=51",UDQQUID]

//圈圈列表 ios_quan_list.php
#define CircleURLString             [BaseURLString stringByAppendingString:[NSString stringWithFormat:@"quan_list_v8_test.php?o_user_id=%@",UDYunqiUID]]

//同龄圈、圈圈详细列表、最新帖子
#define BBSListURLString            [BaseURLString stringByAppendingString:@"bbs_list_v6.php?mobile=51"]

//24小时热帖
#define BBSHotURLString             [BaseURLString stringByAppendingString:@"bbs_list_top_v3.php"]

//推荐热帖
#define BBSRecommendURLString             [BaseURLString stringByAppendingString:@"bbs_list_hot_v3.php"]

//同龄圈
#define SameDayURLString            [BaseURLString stringByAppendingString:@"ios_same_day.php"]

//医院圈帖子列表
#define BBSHospitalURLString        [BaseURLString stringByAppendingString:@"hos_bbs_list.php"]

//用户帖子
#define UserPostURLString           [BaseURLString stringByAppendingString:@"ios_user_post.php"]

//用户回复
#define UserReplyURLString          [BaseURLString stringByAppendingString:@"ios_user_reply.php"]

//我的麻豆
#define UserMabeanURLString          [NSString stringWithFormat:@"http://baby.ci123.com/qq/wap/bean/index.php?mobile=51&o_user_id=%@", UDYunqiUID]

//电脑上社区
#define UserMamaPCURLString          [NSString stringWithFormat:@"http://baby.ci123.com/yunqi/ios2/mamabbs_pc.php?mobile=51&o_user_id=%@", UDYunqiUID]

//妈咪钱包
#define UserMaMoneyURLString          [NSString stringWithFormat:@"http://baby.ci123.com/yunqi/ios2/bank.php?mobile=51&o_user_id=%@&user_id=%@&version=%@", UDYunqiUID,UDQQUID,Current_Version]

//达人勋章
#define UserDarenURLString          [NSString stringWithFormat:@"http://baby.ci123.com/qq/wap/daren/index.php?mobile=51&o_user_id=%@", UDYunqiUID]

//发现美丽列表
#define BeautyListURLString          [NSString stringWithFormat:@"%@find_beauty.php?user_id=%@", BaseURLString, UDQQUID]

//用户快速回复
#define UserQuickReplyURLString     [NSString stringWithFormat:@"http://baby.ci123.com/qq/sub/reply_quick_add.php?mobile=51"]

//更换用户中心背景
#define UserWallURLString           [BaseURLString stringByAppendingString:@"ios_user_wall.php"]

//获取帖子分类
#define postSortURLString           [BaseURLString stringByAppendingString:@"ios_quan_used.php"]

//分层列表
#define BBSThreeListURLString       [BaseURLString stringByAppendingString:@"ios_bbs_list_v3.php"]

//同城圈列表
#define BBSMyCityURLString          [BaseURLString stringByAppendingString:@"city_bbs_list_test.php?mobile=51"]

//同城圈列表
#define TodayFoodURLString          [BaseURLString stringByAppendingString:@"fushi.php?mobile=51"]

//专题、孕周知识列表
#define BBSSepcialURLString          [BaseURLString stringByAppendingString:@"home_bbs_list.php?mobile=51"]

/*********   帖子详情页   ************/

//帖子详情页
#define BBSDetailURLString              [NSString stringWithFormat:@"%@adr_view.php?mobile=51&version=%@",BaseURLString,Current_Build]
//推送帖子详情页
#define BBSPushDetailURLString          [NSString stringWithFormat:@"%@adr_view_push.php?mobile=51&version=%@",BaseURLString,Current_Build]
//消息打开详情页
#define BBSMessageDetailURLString       [NSString stringWithFormat:@"%@adr_view_msg.php?mobile=51&version=%@",BaseURLString,Current_Build]
//回复列表
#define BBSPostReplyListURLString       [NSString stringWithFormat:@"%@adr_reply_list.php?mobile=51&version=%@",BaseURLString,Current_Build]

#define BBSPostReplyHostListURLString   [NSString stringWithFormat:@"%@adr_reply_list_v4.php?limit=20&mobile=51&version=%@",BaseURLString,Current_Build]

//推送回复列表
#define BBSPushPostReplyListURLString   [NSString stringWithFormat:@"%@adr_reply_list_push.php?mobile=51&version=%@",BaseURLString,Current_Build]

//盖楼详情页
#define BBSChatDetailURLString          [NSString stringWithFormat:@"%@reply_chat.php?mobile=51&version=%@",BaseURLString,Current_Build]
//帖子回复对话列表
#define BBSPostReplyChatURLString   [BaseURLString stringByAppendingString:@"reply_chat.php?mobile=51"]

/*********   END 帖子详情页   ************/

//城市医院圈
#define HospitalListURLString   [BaseURLString stringByAppendingString:@"user_hospital.php"]
#define HospitalAddURLString   [BaseURLString stringByAppendingString:@"add_hospital.php"]

//** POST***********************/

//加关注
#define RelateAddURLString          [BaseURLString stringByAppendingString:@"ios_relate_add.php"]

//加收藏
#define CollectAddURLString         [BaseURLString stringByAppendingString:@"ios_collect_add.php"]

//发表帖子
#define PostAddURLString            [BaseURLString stringByAppendingString:@"post_one_quan_test.php"]//ipad:52  iphone:51

//城市圈发表帖子
#define PostCityAddURLString            [BaseURLString stringByAppendingString:@"city_post_one_quan.php"]//ipad:52  iphone:51

//品牌圈发表帖子
#define PostCircleAddURLString            [BaseURLString stringByAppendingString:@"brand_post_one_quan.php"]//ipad:52  iphone:51

//新增帖子回复
#define ReplyAddString              [BaseURLString stringByAppendingString:@"add_reply_v2.php"]//来源：wap iphone ipad android pc

//盖楼回复回复
#define ReplyChatAddString             [BaseURLString stringByAppendingString:[NSString stringWithFormat:@"adr_reply_add_chat.php?mobile=51&version=%@",Current_Build]]

//推荐知识
#define KnowledgeUrlString              [BaseURLString stringByAppendingString:@"cms_list.php"]

//第三方对接统计
#define AdSourceCountURLString            @"http://www.qubaobei.com/ios/api/ios_ad_send.php"

//用户版本，token更新
#define DayUpdateURLString          [BaseURLString stringByAppendingString:@"update_user_version.php"]//ipad:4  ipad:40

//帖子推送点击统计
#define PushClickCalcURLString          @"http://baby.ci123.com/yunqi/ios2/gtpush/yunqi_push_ios_click.php"

//记录用户个推client id
#define UserClientIdURLString          [BaseURLString stringByAppendingString:@"code_add.php"]

//用户反馈
#define FeedBackURLString           [BaseURLString stringByAppendingString:@"recom_add.php"]

//修改资料
#define ModifyUserString            [BaseURLString stringByAppendingString:@"city_user_change_ios.php"]

//上传/修改试用报告
#define ProbationReportAddURLString          @"http://baby.ci123.com/yunqi/api/trial_report.php"
#define ProbationReportAddAppURLString       @"http://app.ci123.com/api/trial_report.php"

//上传/修改试用报告
#define ProbationReportGetURLString          @"http://baby.ci123.com/yunqi/api/get_report.php"
#define ProbationReportGetAppURLString       @"http://app.ci123.com/api/get_report.php"

//Mob统计事件名称
#define MobClickHomeCate            @"homeCate"
#define MobClickHomeUserCenter      @"homeUserCenter"
#define MobclickHomeMessage         @"homeMessage"
#define MobclickHomeAds             @"homeAds"
#define MobclickHomeRecommend       @"homeRecommend"
#define MobclickHomeQuestion        @"homeQuestion"
#define MobclickHomeSign            @"homeSign"
#define MobClickHomeNewUser         @"homeNewUser"
#define MobclickCircleCate          @"circleCate"
#define MobclickTabbar              @"tabbar"
#define MobclickFindList            @"findList"
#define MobclickActivity            @"activity"
#define MobclickSharePost           @"sharePost"
#define MobclickShareBeautyPost     @"shareBeautyPost"
#define MobclickYunqi2007           @"Yunqi_2007"
#define MobclickBrandView           @"homeBrandView"
#define MobclickLaunchAd            @"launchAd"
#define MobclickHomeFunction        @"homeFunction"
#define MobclickCompleteUserInfo    @"completeUserInfo"

//HOST:180.96.7.121  孕期*********************

#define BaseYunqiURLString          @"http://baby.ci123.com/yunqi/ios2/"
#define BaseYunqiV1URLString        @"http://baby.ci123.com/yunqi/ios/"

//生成默认帐号
#define DefaultUserString           @"http://baby.ci123.com/yunqi/connect/oauth/visit_login.php"

//社区常见问题
#define QuestionURLString           @"http://baby.ci123.com/yunqi/ios2/problem.php?mobile=51"

//好孕树是否签到
#define TreeSignURLString                [NSString stringWithFormat:@"http://baby.ci123.com/yunqi/api/tree_sign.php?user_id=%@",UDYunqiUID]

//好孕树是否签到
#define TreeSignInfoURLString                [NSString stringWithFormat:@"http://baby.ci123.com/yunqi/api/tree_sign_log.php?user_id=%@",UDYunqiUID]

//获取隐藏导航栏
#define OtherNavURLString                [NSString stringWithFormat:@"http://qubaobei.com/ios/api/ads_nav_get_v2.php?user_id=%@&site=51",UDYunqiUID]

//好孕树去签到
#define TreeToSignURLString                [NSString stringWithFormat:@"http://baby.ci123.com/yunqi/api/tree_sign_act.php?is_new=1&user_id=%@",UDYunqiUID]

//问答列表页面
#define AskURLString                [NSString stringWithFormat:@"http://baby.ci123.com/ask/ios2/list_ios.php?uid=%@",UDYunqiUID]
//问答提问
#define AskPOSTURLString            @"http://baby.ci123.com/ask/ios2/publish2.php"
//问答详情
#define AskViewURLString            @"http://baby.ci123.com/ask/ios2/view.php?id="

//** GET************************/

//登录
#define LoginURLString              [NSString stringWithFormat:@"%@qqlogin.php?token=%@&udid=%@&latitude=%@&longitude=%@&version=%@#login",BaseYunqiURLString,UDtoken,UDUDID,UDlatitude,UDlongitude,Current_Version]

//绑定QQ url
#define BindQQURLString             [NSString stringWithFormat:@"http://baby.ci123.com/yunqi/connect/oauth/login_visit.php?ios_token=%@&mobile_id=%@&latitude=%@&longitude=%@&version=%@&type=ios",UDtoken,UDUDID,UDlatitude,UDlongitude,Current_Version]

//绑定微信 url
#define BindWeixinURLString             [BaseURLString stringByAppendingString:@"weixin_login.php"]

//获取每日话题
#define DayTopicURLString           [BaseYunqiURLString stringByAppendingString:@"daytopic_get.php"]

//绑定QQ空间
#define BindURLString               [BaseYunqiURLString stringByAppendingString:@"user_bind2.php"]

//联系我
#define ContactURLString            [BaseYunqiURLString stringByAppendingString:@"contact.php?mobile=51"]

//填写邮寄信息
#define AddressURLString            [NSString stringWithFormat:@"http://baby.ci123.com/yunqi/api/address_info_sec.php?uid=%@",UDYunqiUID]

//日记
#define DiaryURLString              [NSString stringWithFormat:@"%@diary_v4.php?o_user_id=%@",BaseYunqiURLString,UDYunqiUID]
#define DiaryAddURLString           [NSString stringWithFormat:@"%@diary_add_v2.php?site=51",BaseYunqiURLString]
#define DiaryDeleteURLString        [NSString stringWithFormat:@"%@diary_del.php?o_user_id=%@",BaseYunqiURLString,UDYunqiUID]

//好孕树
#define TreeURLString               @"http://baby.ci123.com/yunqi/android_v4/tree2.php"

//好孕大礼包
#define GiftURLString               @"http://baby.ci123.com/box/mobile/gift.php?via=ios"

//帖子详情
#define DetailURLString             [BaseYunqiURLString stringByAppendingString:@"qq_view2.php"]

//** POST***********************/

//更新推送数目
#define NoticeURLString             [BaseYunqiURLString stringByAppendingString:@"update_notice_num.php"]


//HOST:180.96.7.116  测试*********************
#define MobileAPPURLString          @"http://good.ci123.com/app2/mobile/get_mobile_app.php"

//搜索页面
#define SearchURLString             @"http://baby.ci123.com/qq/wap/ios_search.php"

//好友列表页
#define MyFocusURLString            @"http://baby.ci123.com/qq/wap/ios_friend_user.php"

//粉丝列表页
#define MyFansURLString            @"http://baby.ci123.com/qq/wap/ios_fan_user.php"

//搜索好友
#define FriendSearchURLString           [NSString stringWithFormat:@"http://baby.ci123.com/yunqi/android5/search_user.php?type=ios&user_id=%@",UDYunqiUID]


//积分规则页
#define BbsRuleURLString            @"http://baby.ci123.com/yunqi/android5/describe.php"

#define EarnMyBeanUrlString           [NSString stringWithFormat:@"http://baby.ci123.com/qq/wap/bean/list.php?mobile=51&o_user_id=%@",UDYunqiUID]

//同龄圈排行
#define CoinRankURLString           [NSString stringWithFormat:@"http://www.qubaobei.com/ios/api/same_age_rank.php?o_user_id=%@",UDYunqiUID]

//好友圈
#define FriendLineURLString         [NSString stringWithFormat:@"http://baby.ci123.com/yunqi/api/friend_line_v2.php?mobile=51&user_id=%@", UDQQUID]
#define FriendUserViewURLString         [NSString stringWithFormat:@"http://baby.ci123.com/yunqi/api/user_line.php?&mobile=51&cur_id=%@", UDQQUID]
#define FriendFollowURLString       @"http://baby.ci123.com/qq/wap/sub/relate_add.php"
#define FriendUnfollowURLString     @"http://baby.ci123.com/qq/wap/sub/relate_delete.php"

//发帖成功页
#define PostSuccessUrlString        @"http://baby.ci123.com/yunqi/ios2/post_success.php"

//删除帖子
#define PostDeleteUrlString         @"http://baby.ci123.com/yunqi/api/qq_post_del.php"

//举报帖子
#define PostReportUrlString         @"http://baby.ci123.com/yunqi/api/complain.php"
//是否绑定
#define BindAccountUrlString         @"http://www.qubaobei.com/ios/api/bind_info.php?mobile=51"

//用户中心
#define FriendUserURLString         @"http://baby.ci123.com/qq/wap/ios_user.php"

#define BoxURLString                [NSString stringWithFormat:@"http://baby.ci123.com/qq/wap/ios_box.php?mobile=51&o_user_id=%@", UDYunqiUID]
#define examURLString               @"http://baby.ci123.com/qq/wap/exam/index.php?via=iosbox"
#define MyGiftURLString             @"http://baby.ci123.com/box/mobile/gift_my_new.php"
#define MyHospitalURLString         @"http://baby.ci123.com/qq/act/yiyuan/index.php?mobile=51"
#define CircleHospitalURLString     [NSString stringWithFormat:@"http://baby.ci123.com/qq/act/yiyuan/hospital.php?mobile=51&is_new=1&o_user_id=%@", UDYunqiUID]
#define ExpertAskURLString          [NSString stringWithFormat:@"http://baby.ci123.com/qq/wap/expert/index.php?mobile=51&o_user_id=%@", UDYunqiUID]

//*********************************************************************************************

//** [NSUserDefaults standardUserDefaults] *******************************

////idfa
//#define UDIDFAIdentify         @"advertising_identifier"
//#define UDIDFA                 [[NSUserDefaults standardUserDefaults] objectForKey:UDIDFAIdentify]
//
////idfv
//#define UDIDFVIdentify         @"identifierForVendor"
//#define UDIDFV                 [[NSUserDefaults standardUserDefaults] objectForKey:UDIDFVIdentify]

//mac
#define UDMacIdentify         @"mac_identifier"
#define UDMac                 [[NSUserDefaults standardUserDefaults] objectForKey:UDMacIdentify]

//发帖标题
#define UDPostTitleIdentify         @"post_title"
#define UDPostTitle                 [[NSUserDefaults standardUserDefaults] objectForKey:UDPostTitleIdentify]

//发帖内容
#define UDPostContentIdentify       @"post_content"
#define UDPostContent               [[NSUserDefaults standardUserDefaults] objectForKey:UDPostContentIdentify]

//发帖表情数组
#define UDPostFaceDataIdentify       @"post_content_face_data"
#define UDPostFaceData               [[NSUserDefaults standardUserDefaults] objectForKey:UDPostFaceDataIdentify]

//孕期ID
#define UDYunqiUIDIdentify          @"yunqi_uid"
#define UDYunqiUID                  [[NSUserDefaults standardUserDefaults] objectForKey:UDYunqiUIDIdentify]

//圈圈ID
#define UDQQUIDIdentify             @"qq_uid"
#define UDQQUID                     [[NSUserDefaults standardUserDefaults] objectForKey:UDQQUIDIdentify]

//idfa
#define UDIdfaIdentify              @"idfa"
#define UDIdfa                     [[NSUserDefaults standardUserDefaults] objectForKey:UDIdfaIdentify]

//baby birth
#define UDBabyBirthIdentify              @"baby_birth"
#define UDBabyBirth                     [[NSUserDefaults standardUserDefaults] objectForKey:UDBabyBirthIdentify]

//设置用户cookie
#define UDYunqiCookieIdentify          @"yunqi_cookie"
#define UDYunqiCookie                  [[NSUserDefaults standardUserDefaults] objectForKey:UDYunqiCookieIdentify]

//设置cookie页面
#define SetCookieURLString          [NSString stringWithFormat:@"%@yunqi_cookie_set.php?yunqi_id=%@",BaseYunqiURLString,UDYunqiUID]

//是否编辑过个人资料
#define UDYunqiEditedIdentify        @"yunqi_edited"
#define UDYunqiEdited                [[NSUserDefaults standardUserDefaults] objectForKey:UDYunqiEditedIdentify]

//是否绑定 默认-》QQ号  1未绑定 2绑定
#define UDBindUIDIdentify          @"bind_type"
#define UDBindType                  [[NSUserDefaults standardUserDefaults] objectForKey:UDBindUIDIdentify]

//是否绑定 默认-》微信号  1未绑定 2绑定
#define UDIsWeixinBindIdentify          @"isWeixinBind"
#define UDIsWeixinBind                  [[NSUserDefaults standardUserDefaults] objectForKey:UDIsWeixinBindIdentify]

//是否绑定 默认-》微信号  1未绑定 2绑定
#define UDIsCiBindIdentify          @"isCi123Bind"
#define UDIsCiBind                  [[NSUserDefaults standardUserDefaults] objectForKey:UDIsCiBindIdentify]

//首页判断是否绑定 提醒绑定按钮  0未绑定 1绑定
#define UDHomeBindTypeIdentify      @"home_bind_type"
#define UDHomeBindType              [[NSUserDefaults standardUserDefaults] objectForKey:UDHomeBindTypeIdentify]

//是否推送帖子消息  0不推送 1推送
#define UDNoticeSetTypeIdentify      @"user_notice_type"
#define UDNoticeSetType              [[NSUserDefaults standardUserDefaults] objectForKey:UDNoticeSetTypeIdentify]

//关闭绑定提醒时间
#define UDHomeCloseBindTimeIdentify      @"home_close_bind_time"
#define UDHomeCloseBindTime              [[NSUserDefaults standardUserDefaults] objectForKey:UDHomeCloseBindTimeIdentify]

//关闭完善信息提示时间
#define UDHomeCloseInfoTimeIdentify      @"home_close_info_time"
#define UDHomeCloseInfoTime              [[NSUserDefaults standardUserDefaults] objectForKey:UDHomeCloseInfoTimeIdentify]

//签到天数
#define UDTreeSignedNumIdentify      @"tree_signed_num"
#define UDTreeSignedNum                  [[NSUserDefaults standardUserDefaults] objectForKey:UDTreeSignedNumIdentify]

//摇一摇签到次数
#define UDTreeShakeSignedNumIdentify      @"tree_shakesigned_num"
#define UDTreeShakeSignedNum              [[NSUserDefaults standardUserDefaults] objectForKey:UDTreeShakeSignedNumIdentify]

//签到时间
#define UDTreeSignedDatedIdentify      @"tree_signed_dated"
#define UDTreeSignedDated                  [[NSUserDefaults standardUserDefaults] objectForKey:UDTreeSignedDatedIdentify]

//用户资料
#define UDUserInfoIdentify          @"User_info"
#define UDUserInfo                  [[NSUserDefaults standardUserDefaults] objectForKey:UDUserInfoIdentify]

//回复缓存
#define UDPostReplyCacheIdentify          @"post_reply_cache"
#define UDPostReplyCache                 [[NSUserDefaults standardUserDefaults] objectForKey:UDPostReplyCacheIdentify]

//详情页快速回复次数
#define UDDetailQuickReplyCountIdentify @"detail_quickreply_count"
#define UDDetailQuickReplyCount         [[NSUserDefaults standardUserDefaults] objectForKey:UDDetailQuickReplyCountIdentify]

//个人中心用户资料
#define UDUserCenterInfoIdentify          @"User_center_info"
#define UDUserCenterInfo                  [[NSUserDefaults standardUserDefaults] objectForKey:UDUserCenterInfoIdentify]

//用户资料
#define UDHomeHeadPregInfoIdentify   @"home_head_preg_info"
#define UDHomeHeadPregInfo           [[NSUserDefaults standardUserDefaults] objectForKey:UDHomeHeadPregInfoIdentify]

//个人中心满月照分享 0未分享 1已分享
#define UDUserIsShareImageIdentify        @"User_share_birth_image"
#define UDUserIsShareImage                  [[NSUserDefaults standardUserDefaults] objectForKey:UDUserIsShareImageIdentify]

//用户状态 0：备孕中 1：已怀孕 2：已出生
#define UDUserStateIdentify          @"User_state"
#define UDUserState                  [[NSUserDefaults standardUserDefaults] objectForKey:UDUserStateIdentify]
#define UDUserStateDateIdentify          @"User_state_date"
#define UDUserStateDate                  [[NSUserDefaults standardUserDefaults] objectForKey:UDUserStateDateIdentify]

//个人中心是否展示昨日积分
#define UDUserCenterShowCoinIdentify          @"User_center_show_coin"
#define UDUserCenterShowCoin                  [[NSUserDefaults standardUserDefaults] objectForKey:UDUserCenterShowCoinIdentify]

// 综合页面搜索历史
#define UDComprehensiveHistoryIdentify         @"User_Comprehensive_History"
#define UDComprehensiveHistory                 [[NSUserDefaults standardUserDefaults] objectForKey:UDComprehensiveHistoryIdentify]

//用户搜索历史记录
#define UDSearchHistoryIdentify         @"User_Search_History"
#define UDSearchHistory                 [[NSUserDefaults standardUserDefaults] objectForKey:UDSearchHistoryIdentify]

//用户不能吃热搜榜
#define UDNoEatingHotDataIdentify         @"User_NoEating_HotData"
#define UDNoEatingHotData                 [[NSUserDefaults standardUserDefaults] objectForKey:UDNoEatingHotDataIdentify]

//用户不能吃搜索历史
#define UDNoEatingHistoryIdentify         @"User_NoEating_History"
#define UDNoEatingHistory                 [[NSUserDefaults standardUserDefaults] objectForKey:UDNoEatingHistoryIdentify]

//特卖搜索历史
#define UDSalesHistoryIdentify         @"User_Sales_History"
#define UDSalesHistory                 [[NSUserDefaults standardUserDefaults] objectForKey:UDSalesHistoryIdentify]

//日记草稿
#define UDDiaryDraftIdentify          @"User_Diary_Draft"
#define UDDiaryDraft                 [[NSUserDefaults standardUserDefaults] objectForKey:UDDiaryDraftIdentify]

//用户城市天气代码
#define UDUserCityCodeIdentify          @"User_City_Code"
#define UDUserCityCode                 [[NSUserDefaults standardUserDefaults] objectForKey:UDUserCityCodeIdentify]

//Crc
#define UDCrcIdentify             @"User_Crc"
#define UDCrc                     [[NSUserDefaults standardUserDefaults] objectForKey:UDCrcIdentify]

//CrcQQ
#define UDCrcQQIdentify             @"User_CrcQQ"
#define UDCrcQQ                     [[NSUserDefaults standardUserDefaults] objectForKey:UDCrcQQIdentify]

//用户天气请求时间
#define UDUserWeatherIndetify   @"User_Weather"
#define UDUserWeather           [[NSUserDefaults standardUserDefaults] objectForKey:UDUserWeatherIndetify]
#define UDUserWeatherDateIndetify   @"User_Weather_Date"
#define UDUserWeatherDate           [[NSUserDefaults standardUserDefaults] objectForKey:UDUserWeatherDateIndetify]
#define UDUserWeatherLastStampIndetify   @"User_Weather_LastRequest_Stamp"
#define UDUserWeatherLastStamp           [[NSUserDefaults standardUserDefaults] objectForKey:UDUserWeatherLastStampIndetify]
#define UDWeatherRequestTag            9999

//当前消息提醒数
#define UDMessageCountIdentify          @"Message_Count"
#define UDMessageCount                 [[NSUserDefaults standardUserDefaults] objectForKey:UDMessageCountIdentify]

//密友圈背景图
#define UDUserBackgroundImageIndetify   @"UserBackgroundImage"
#define UDUserBackgroundImage           [[NSUserDefaults standardUserDefaults] objectForKey:UDUserBackgroundImageIndetify]

//是否从妈妈社区下载孕期提醒
#define UDDownPregnantIdentify             @"down_pregnant"
#define UDDownPregnant                     [[NSUserDefaults standardUserDefaults] objectForKey:UDDownPregnantIdentify]

//是否从孕期提醒下载的妈妈社区
#define UDFromPregnantIdentify             @"from_pregnant"
#define UDFromPregnant                     [[NSUserDefaults standardUserDefaults] objectForKey:UDFromPregnantIdentify]

//从服务器获取的孕期提醒数据
#define UDPregnantNetInfoIdentify             @"pregInfonet"
#define UDPregnantNetInfo                     [[NSUserDefaults standardUserDefaults] objectForKey:UDPregnantNetInfoIdentify]

//孕期提醒互通 心跳检测是否发送 时间设定
#define UDPregnantSendTimeIdentify             @"pregnant_start_time"
#define UDPregnantSendTime                     [[NSUserDefaults standardUserDefaults] objectForKey:UDPregnantSendTimeIdentify]

//孕期提醒互通 心跳检测是否发送
#define UDPregnantContinueTypeIdentify             @"pregnant_continue_type"
#define UDPregnantContinueType                     [[NSUserDefaults standardUserDefaults] objectForKey:UDPregnantContinueTypeIdentify]


/*小红点*/
typedef enum {
    TabbarTypeClub = 0,         //社区
    TabbarTypeFind,             //发现
    TabbarTypeActivity,         //活动
    TabbarTypeMine,             //我
    TabbarTypeCircle,           //圈子
    TabbarTypeAll = 99          //所有
}TabbarType;

//数据请求间隔
#define UDTabbarRequestDurationIdentify     @"Tabbar_Request_Duration"
#define UDTabbarRequestDuration             [[NSUserDefaults standardUserDefaults] objectForKey:UDTabbarRequestDurationIdentify]
//上次数据请求时间戳
#define UDTabbarRequestStampIdentify     @"Tabbar_Request_Stamp"
#define UDTabbarRequestStamp             [[NSUserDefaults standardUserDefaults] objectForKey:UDTabbarRequestStampIdentify]

//社区消息和站内信数
#define UDCountForHomeIdentify          @"Count_For_Home"
#define UDCountForHome                 [[NSUserDefaults standardUserDefaults] objectForKey:UDCountForHomeIdentify]

//发现红点 旧id数组 和 新id数组
#define UDFindOldIdsIdentify          @"Find_Old_Ids"
#define UDFindOldIds                 [[NSUserDefaults standardUserDefaults] objectForKey:UDFindOldIdsIdentify]
#define UDFindNewIdsIdentify          @"Find_New_Ids"
#define UDFindNewIds                 [[NSUserDefaults standardUserDefaults] objectForKey:UDFindNewIdsIdentify]

//活动红点 旧id 和 新id
#define UDActivityOldIdIdentify          @"Activity_Old_Id"
#define UDActivityOldId                 [[NSUserDefaults standardUserDefaults] objectForKey:UDActivityOldIdIdentify]
#define UDActivityNewIdIdentify          @"Activity_New_Id"
#define UDActivityNewId                 [[NSUserDefaults standardUserDefaults] objectForKey:UDActivityNewIdIdentify]

//我 红点 个人信息是否设置
#define UDMineOldIdIdentify          @"Mine_Old_Id"
#define UDMineOldId                 [[NSUserDefaults standardUserDefaults] objectForKey:UDMineOldIdIdentify]
#define UDMineNewIdIdentify          @"Mine_New_Id"
#define UDMineNewId                 [[NSUserDefaults standardUserDefaults] objectForKey:UDMineNewIdIdentify]

/*end 小红点*/

//token
#define UDtokenIdentify             @"User_token"
#define UDtoken                     [[NSUserDefaults standardUserDefaults] objectForKey:UDtokenIdentify]

//umessage tags
#define UDUMessageTagsIdentify      @"uMessageTags"
#define UDUMessageTags              [[NSUserDefaults standardUserDefaults] objectForKey:UDUMessageTagsIdentify]

#define UDfirstLaunchIdentify       @"User_firstLaunch"
#define UDfirstLaunch               [[NSUserDefaults standardUserDefaults] objectForKey:UDfirstLaunchIdentify]

#define UDsaveDayIdentify           @"User_saveDay"
#define UDsaveDay                   [[NSUserDefaults standardUserDefaults] objectForKey:UDsaveDayIdentify]

#define UDlatitudeIdentify          @"latitude"
#define UDlatitude                  [[NSUserDefaults standardUserDefaults] objectForKey:UDlatitudeIdentify]

#define UDlongitudeIdentify         @"longitude"
#define UDlongitude                 [[NSUserDefaults standardUserDefaults] objectForKey:UDlongitudeIdentify]

#define UDUserProvinceIdentify      @"userProvince"
#define UDUserProvince              [[NSUserDefaults standardUserDefaults] objectForKey:UDUserProvinceIdentify]

#define UDUserCityIdentify         @"userCity"
#define UDUserCity                 [[NSUserDefaults standardUserDefaults] objectForKey:UDUserCityIdentify]

#define UDUDIDIdentify              @"UDID"
#define UDUDID                      [[NSUserDefaults standardUserDefaults] objectForKey:UDUDIDIdentify]

#define UDuserWallIdentify          @"userWall"
#define UDuserWall                  [[NSUserDefaults standardUserDefaults] objectForKey:UDuserWallIdentify]

#define UDShakeGuideIdentify        @"shakeGuide"
#define UDShakeGuide                [[NSUserDefaults standardUserDefaults] objectForKey:UDShakeGuideIdentify]

#define UDHomeSetGuideIdentify      @"homeSetGuide"
#define UDHomeSetGuide              [[NSUserDefaults standardUserDefaults] objectForKey:UDHomeSetGuideIdentify]

#define UDReportIsNewIdentify       @"reportIsNew"
#define UDReportIsNew               [[NSUserDefaults standardUserDefaults] objectForKey:UDReportIsNewIdentify]

#define UDReportIsBornIdentify      @"reportIsBorn"
#define UDReportIsBorn              [[NSUserDefaults standardUserDefaults] objectForKey:UDReportIsBornIdentify]

#define UDReportIsHundredIdentify   @"reportIsHundred"
#define UDReportIsHundred           [[NSUserDefaults standardUserDefaults] objectForKey:UDReportIsHundredIdentify]

#define UDReportIsYearIdentify      @"reportIsYear"
#define UDReportIsYear              [[NSUserDefaults standardUserDefaults] objectForKey:UDReportIsYearIdentify]

//医院省
#define UDHospitalProvinceIdentify      @"hospitalProvince"
#define UDHospitalProvince              [[NSUserDefaults standardUserDefaults] objectForKey:UDHospitalProvinceIdentify]

//医院市
#define UDHospitalCityIdentify      @"hospitalCity"
#define UDHospitalCity              [[NSUserDefaults standardUserDefaults] objectForKey:UDHospitalCityIdentify]

//医院区
#define UDHospitalAreaIdentify      @"hospitalArea"
#define UDHospitalArea              [[NSUserDefaults standardUserDefaults] objectForKey:UDHospitalAreaIdentify]

//是否显示品牌圈
#define UDIsLastBrandShowIdentify      @"isLastBrandShow"
#define UDIsLastBrandShow              [[NSUserDefaults standardUserDefaults] objectForKey:UDIsLastBrandShowIdentify]

//是否显示首页网络icon
#define UDIsLastNetIconShowIdentify      @"isLastNetIconShow"
#define UDIsLastNetIconShow              [[NSUserDefaults standardUserDefaults] objectForKey:UDIsLastNetIconShowIdentify]

//试用报告域名区分id
#define UDReportDomainIdIdentify      @"reportDomainId"
#define UDReportDomainId              [[NSUserDefaults standardUserDefaults] objectForKey:UDReportDomainIdIdentify]

/********  Aieryima   *********/

//记录经期开始日期时间戳
#define RecordedDataFilePath        [HomeDirectory stringByAppendingString:@"recordedData.plist"]
//记录经期具体日期时间戳
#define RecordedStartDataFilePath   [HomeDirectory stringByAppendingString:@"recordedStartData.plist"]

//应用进入前台通知
#define kWillEnterForegroundNotification        @"applicationWillEnterForegroundNotification"

//local push key
#define kMenstruationNotifyLocalPushKey   @"kMenstruationNotifyLocalPushKey"
#define kOneWeekLocalPushKey             @"kOneWeekLocalPushKey"

//上次月经开始日期
#define UDMenstruationStartStampIdentify     @"MenstruationStartStamp"
#define UDMenstruationStartStamp             [[NSUserDefaults standardUserDefaults] objectForKey:UDMenstruationStartStampIdentify]
//上次月经结束日期
#define UDMenstruationEndStampIdentify     @"MenstruationEndStamp"
#define UDMenstruationEndStamp             [[NSUserDefaults standardUserDefaults] objectForKey:UDMenstruationEndStampIdentify]
//用户经期周期
#define UDMenstruationPeriodIdentify           @"MenstruationPeriod"
#define UDMenstruationPeriod                   [[NSUserDefaults standardUserDefaults] objectForKey:UDMenstruationPeriodIdentify]
//用户经期天数
#define UDMenstruationDurationIdentify           @"MenstruationDuration"
#define UDMenstruationDuration                   [[NSUserDefaults standardUserDefaults] objectForKey:UDMenstruationDurationIdentify]

//上次本地推送日期
#define UDMenstruationLastLocalPushDateIdentify  @"MenstruationLastLocalPushDate"
#define UDMenstruationLastLocalPushDate          [[NSUserDefaults standardUserDefaults] objectForKey:UDMenstruationLastLocalPushDateIdentify]

//姨妈状态
typedef enum{
    StateTypeNoData = -1,
    StateTypeMens = 0,
    StateTypeSafty = 1,
    StateTypeUnsafty = 2,
    StateTypeOvulation = 3
}StateType;

/*********** End Aieryima *************/

//local push
#define OneWeekLocalPushKey             @"oneWeekLocalPushKey"

//** [NSNotificationCenter defaultCenter] *******************************//

//图片加载完成通知中心名称
#define ImageLoadFinished             @"ImageLoadFinishedNotification"

//***********************************************

#define maleColor                    RGBCOLOR(65, 122, 225)
#define femaleColor                  RGBCOLOR(237, 94, 102)
#define DefaultNavigationColor       RGBCOLOR(255, 83, 123)
#define DefaultViewBackgroundColor   RGBCOLOR(245, 240, 236)
#define DefaultBorderColor           RGBCOLOR(216, 216, 219)
#define DefaultMedalBackgroundColor  RGBCOLOR(187, 189, 19)

#define UDGroupName    @"group.com.ci123.yunqiphone"

#define UMENG_APP_KEY                 @"5147f2bf56240b339d000ce6"
#define UMtrack_KEY                   @"cdb559282a5b8b70dd4ee5c55941f7d3"
//友盟推送
#define UMSYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v)  ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)
#define _IPHONE80_ 80000

//微信APPID
#define WX_APP_ID                     @"wx00a1f15687aafaa3"
#define WX_APP_KEY                    @"8089e478092faeb49811c0ce74fd7a1a"
#define WX_APP_PARTNERID              @"1235159202"
#define QQ_APP_ID                     @"100312211"
#define QQ_APP_KEY                    @"01094035884c67c92d37b70886ebddbf"
#define QQ_APP_ID_HEX                 @"05FAA493"


//个推
#define GexinAppID                      @"50fvHhmbtA66TATfuXbqG"
#define GexinAppKey                     @"azwmSYyLkl7lKPJASOijX"
#define GexinAppSecret                  @"LsEUIMoPkH6ZSNlqFpImt3"

//艾瑞
#define IRAppKey                        @"cb3758e3238bf7d5"

typedef enum {
    AppScreenInch3_5   = 1,
    AppScreenInch4_0   = 2,
    AppScreenInch4_7   = 3,
    AppScreenInch5_5   = 4
}AppScreenInch;

typedef enum {
    ShareTagWechatSession   = 1001,
    ShareTagWechatTimeline  = 1002,
    ShareTagQQ              = 1003,
    ShareTagQzone           = 1004
}ShareTag;

typedef enum {
    AppStyleColorRed     = 0,
    AppStyleColorBlue    = 1
}AppStyleColor;

//默认分享点击连接
#define DEFAULT_SHARE_CLICK_LINK      @"http://baby.ci123.com/yunqi/m/download.php"
//默认分享处理连接
#define DEFAULT_SHARE_HANDLE_LINK     [NSString stringWithFormat:@"http://baby.ci123.com/box/mobile/share_count.php?mobile=51&yunqi_id=%@",UDYunqiUID]

//自定义导航高度
#define CUSTOM_NAV_HEIGHT             44
#define CUSTOM_TABBAR_HEIGHT            49

//*********************************通用define************************************//
#define APPID                       631069824

//是否debug测试
#define NEED_OUTPUT_LOG                 0


#define USER_DEFAULT                [NSUserDefaults standardUserDefaults]
#define NOTIFICATION_CENTER         [NSNotificationCenter defaultCenter]
#define IMAGE_CACHE                 [SDImageCache sharedImageCache]

#define kNetworkStateChangedNotification        @"network_state_changed_notification"

#define kReceivePushPayLoadNotification         @"ReceivePushPayloadNotification"

/*网络判断显示背景*/
typedef enum{
    BaseBackgroundTipTypeLoading = 1,
    BaseBackgroundTipTypeNoNet
}BaseBackgroundTipType;

/*帖子列表分类*/
typedef enum {
    BBSListTypeNormal = 0,       //普通帖子列表
    BBSListTypeCollect,          //帖子收藏列表
    BBSListTypeUserReply         //用户回帖列表
}BBSListType;

#define DBNAME    @"mamabbs.sqlite"

//沙盒存储路径
#define HomeDirectory               [NSHomeDirectory() stringByAppendingString:@"/Documents/"]

//缓存路径
#define APP_CACHES_PATH             [NSSearchPathForDirectoriesInDomains (NSCachesDirectory, NSUserDomainMask, YES) objectAtIndex:0]

//屏幕物理宽、高
#define APP_SCREEN_WIDTH            [UIScreen mainScreen].bounds.size.width
#define APP_SCREEN_HEIGHT           [UIScreen mainScreen].bounds.size.height

//除去状态栏高
#define APP_SCREEN_CONTENT_HEIGHT   ([UIScreen mainScreen].bounds.size.height-20.0)

//是否iphone5以上
#define IS_4_INCH                   (APP_SCREEN_HEIGHT > 480.0)

//当前app版本
#define Current_Version             [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]

//当前app build
#define Current_Build             [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]

//手机版本
#define Current_device_vesion       [[[UIDevice currentDevice] systemVersion] floatValue]

//设置RGB颜色
#define RGBCOLOR(r,g,b)             [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1]
#define RGBACOLOR(r,g,b,a)          [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(a)]

//app store-http
#define APP_STORE_LINK_http         [NSString stringWithFormat:@"https://itunes.apple.com/cn/app/id%d?ls=1&mt=8",APPID]
//app store
#define APP_STORE_LINK_iTunes       [NSString stringWithFormat:@"itms-apps://itunes.apple.com/cn/app/id%d?mt=8",APPID]
//app store评论
#define APP_COMMENT_LINK_iTunes     [NSString stringWithFormat:@"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%d",APPID]

#define APP_COMMENT_LINK_iTunes_NEW [NSString stringWithFormat:@"itms-apps://itunes.apple.com/app/id%d",APPID]

//app信息
#define APP_Information_URLString   [NSString stringWithFormat:@"http://itunes.apple.com/lookup?id=%d",APPID]
//内部跳转
#define APP_STORE_UMTrack_LINK      @"http://baby.ci123.com/yunqi/m/down.php?from=wx"

#if NEED_OUTPUT_LOG

#define SLog(xx, ...)   NSLog(xx, ##__VA_ARGS__)
#define SLLog(xx, ...)  NSLog(@"%s(%d): " xx, __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)

#define SLLogRect(rect) \
SLLog(@"%s x=%f, y=%f, w=%f, h=%f", #rect, rect.origin.x, rect.origin.y, \
rect.size.width, rect.size.height)

#define SLLogPoint(pt) \
SLLog(@"%s x=%f, y=%f", #pt, pt.x, pt.y)

#define SLLogSize(size) \
SLLog(@"%s w=%f, h=%f", #size, size.width, size.height)

#define SLLogColor(_COLOR) \
SLLog(@"%s h=%f, s=%f, v=%f", #_COLOR, _COLOR.hue, _COLOR.saturation, _COLOR.value)

#define SLLogSuperViews(_VIEW) \
{ for (UIView* view = _VIEW; view; view = view.superview) { SLLog(@"%@", view); } }

#define SLLogSubViews(_VIEW) \
{ for (UIView* view in [_VIEW subviews]) { SLLog(@"%@", view); } }

#else

#define SLog(xx, ...)  ((void)0)
#define SLLog(xx, ...)  ((void)0)

#endif

#endif
